<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Unicode::Normalize - Unicode Normalization Forms - Perldoc Browser</title>
    <link rel="search" href="https://perldoc.perl.org/opensearch.xml" type="application/opensearchdescription+xml" title="Perldoc Browser">
    <link rel="canonical" href="https://perldoc.perl.org/Unicode::Normalize">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/stackoverflow-light.min.css" integrity="sha512-cG1IdFxqipi3gqLmksLtuk13C+hBa57a6zpWxMeoY3Q9O6ooFxq50DayCdm0QrDgZjMUn23z/0PMZlgft7Yp5Q==" crossorigin="anonymous" />
    <style>
      body {
        background: #f4f4f5;
        color: #020202;
      }
      .navbar-dark {
        background-image: -webkit-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: -o-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: linear-gradient(to bottom, #005f85 0, #002e49 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff005f85', endColorstr='#ff002e49', GradientType=0);
        background-repeat: repeat-x;
      }
      .navbar-dark .navbar-nav .nav-link,
      .navbar-dark .navbar-nav .nav-link:focus { color: #fff }
      .navbar-dark .navbar-nav .nav-link:hover { color: #ffef68 }
      #wrapperlicious {
        margin: 0 auto;
        font: 0.9em 'Helvetica Neue', Helvetica, sans-serif;
        font-weight: normal;
        line-height: 1.5em;
        margin: 0;
        padding: 0;
      }
      #wrapperlicious h1 { font-size: 1.5em }
      #wrapperlicious h2 { font-size: 1.3em }
      #wrapperlicious h3 { font-size: 1.1em }
      #wrapperlicious h4 { font-size: 0.9em }
      #wrapperlicious h1, #wrapperlicious h2, #wrapperlicious h3,
      #wrapperlicious h4, #wrapperlicious dt {
        color: #020202;
        margin-top: 1em;
        margin-bottom: 1em;
        position: relative;
        font-weight: bold;
      }
      #wrapperlicious a { color: inherit; text-decoration: underline }
      #wrapperlicious #toc { text-decoration: none }
      #wrapperlicious a:hover { color: #2a2a2a }
      #wrapperlicious a img { border: 0 }
      #wrapperlicious :not(pre) > code {
        color: inherit;
        background-color: rgba(0, 0, 0, 0.04);
        border-radius: 3px;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        padding: 0.3em;
      }
      #wrapperlicious dd {
        margin: 0;
        margin-left: 2em;
      }
      #wrapperlicious dt {
        color: #2a2a2a;
        font-weight: bold;
        margin-left: 0.9em;
      }
      #wrapperlicious p {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious li > p {
        margin-bottom: 0;
        margin-top: 0;
      }
      #wrapperlicious pre {
        border: 1px solid #c1c1c1;
        border-radius: 3px;
        font: 100% Consolas, Menlo, Monaco, monospace;
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious pre > code {
        display: block;
        background-color: #f6f6f6;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        line-height: 1.5em;
        text-align: left;
        white-space: pre;
        padding: 1em;
      }
      #wrapperlicious dl, #wrapperlicious ol, #wrapperlicious ul {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious ul {
        list-style-type: square;
      }
      #wrapperlicious ul ul {
        margin-bottom: 0px;
        margin-top: 0px;
      }
      #footer {
        font-size: 0.8em;
        padding-top: 0.5em;
        text-align: center;
      }
      #more {
        display: inline;
        font-size: 0.8em;
      }
      #perldocdiv {
        background-color: #fff;
        border: 1px solid #c1c1c1;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        margin-left: auto;
        margin-right: auto;
        padding: 3em;
        padding-top: 1em;
        max-width: 960px;
      }
      #moduleversion { float: right }
      #wrapperlicious .leading-notice {
        font-style: italic;
        padding-left: 1em;
        margin-top: 1em;
        margin-bottom: 1em;
      }
      #wrapperlicious .permalink {
        display: none;
        left: -0.75em;
        position: absolute;
        padding-right: 0.25em;
        text-decoration: none;
      }
      #wrapperlicious h1:hover .permalink, #wrapperlicious h2:hover .permalink,
      #wrapperlicious h3:hover .permalink, #wrapperlicious h4:hover .permalink,
      #wrapperlicious dt:hover .permalink {
        display: block;
      }
    </style>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-KVNWBNT5FB"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'G-KVNWBNT5FB');
      gtag('config', 'UA-50555-3');
    </script>
  </head>
  <body>
    <nav class="navbar navbar-expand-md navbar-dark bg-dark justify-content-between">
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <a class="navbar-brand" href="https://perldoc.perl.org/">Perldoc Browser</a>
  <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="./Unicode::Normalize.html#" id="dropdownlink-stable" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">5.35.0</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-stable">
          <a class="dropdown-item" href="https://perldoc.perl.org/Unicode::Normalize">Latest</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.2/Unicode::Normalize">5.38.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.1/Unicode::Normalize">5.38.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0/Unicode::Normalize">5.38.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.3/Unicode::Normalize">5.36.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.2/Unicode::Normalize">5.36.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.1/Unicode::Normalize">5.36.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.0/Unicode::Normalize">5.36.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.3/Unicode::Normalize">5.34.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.2/Unicode::Normalize">5.34.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.1/Unicode::Normalize">5.34.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.0/Unicode::Normalize">5.34.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.1/Unicode::Normalize">5.32.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.0/Unicode::Normalize">5.32.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.3/Unicode::Normalize">5.30.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.2/Unicode::Normalize">5.30.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.1/Unicode::Normalize">5.30.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.0/Unicode::Normalize">5.30.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.3/Unicode::Normalize">5.28.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.2/Unicode::Normalize">5.28.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.1/Unicode::Normalize">5.28.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.0/Unicode::Normalize">5.28.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.3/Unicode::Normalize">5.26.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.2/Unicode::Normalize">5.26.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.1/Unicode::Normalize">5.26.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.0/Unicode::Normalize">5.26.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.4/Unicode::Normalize">5.24.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.3/Unicode::Normalize">5.24.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.2/Unicode::Normalize">5.24.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.1/Unicode::Normalize">5.24.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.0/Unicode::Normalize">5.24.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.4/Unicode::Normalize">5.22.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.3/Unicode::Normalize">5.22.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.2/Unicode::Normalize">5.22.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.1/Unicode::Normalize">5.22.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.0/Unicode::Normalize">5.22.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.3/Unicode::Normalize">5.20.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.2/Unicode::Normalize">5.20.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.1/Unicode::Normalize">5.20.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.0/Unicode::Normalize">5.20.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.4/Unicode::Normalize">5.18.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.3/Unicode::Normalize">5.18.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.2/Unicode::Normalize">5.18.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.1/Unicode::Normalize">5.18.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.0/Unicode::Normalize">5.18.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.3/Unicode::Normalize">5.16.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.2/Unicode::Normalize">5.16.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.1/Unicode::Normalize">5.16.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.0/Unicode::Normalize">5.16.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.4/Unicode::Normalize">5.14.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.3/Unicode::Normalize">5.14.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.2/Unicode::Normalize">5.14.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.1/Unicode::Normalize">5.14.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.0/Unicode::Normalize">5.14.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.5/Unicode::Normalize">5.12.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.4/Unicode::Normalize">5.12.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.3/Unicode::Normalize">5.12.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.2/Unicode::Normalize">5.12.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.1/Unicode::Normalize">5.12.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.0/Unicode::Normalize">5.12.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.1/Unicode::Normalize">5.10.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.0/Unicode::Normalize">5.10.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.9/Unicode::Normalize">5.8.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.8/Unicode::Normalize">5.8.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.7/Unicode::Normalize">5.8.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.6/Unicode::Normalize">5.8.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.5/Unicode::Normalize">5.8.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.4/Unicode::Normalize">5.8.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.3/Unicode::Normalize">5.8.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.2/Unicode::Normalize">5.8.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.1/Unicode::Normalize">5.8.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.0/Unicode::Normalize">5.8.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.2/Unicode::Normalize">5.6.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.1/Unicode::Normalize">5.6.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.0/Unicode::Normalize">5.6.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_04/Unicode::Normalize">5.005_04</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_03/Unicode::Normalize">5.005_03</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_02/Unicode::Normalize">5.005_02</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_01/Unicode::Normalize">5.005_01</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005/Unicode::Normalize">5.005</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="./Unicode::Normalize.html#" id="dropdownlink-dev" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dev</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-dev">
          <a class="dropdown-item" href="https://perldoc.perl.org/blead/Unicode::Normalize">blead</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.6/Unicode::Normalize">5.39.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.5/Unicode::Normalize">5.39.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.4/Unicode::Normalize">5.39.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.3/Unicode::Normalize">5.39.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.2/Unicode::Normalize">5.39.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.1/Unicode::Normalize">5.39.1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC2/Unicode::Normalize">5.38.0-RC2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC1/Unicode::Normalize">5.38.0-RC1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.11/Unicode::Normalize">5.37.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.10/Unicode::Normalize">5.37.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.9/Unicode::Normalize">5.37.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.8/Unicode::Normalize">5.37.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.7/Unicode::Normalize">5.37.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.6/Unicode::Normalize">5.37.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.5/Unicode::Normalize">5.37.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.4/Unicode::Normalize">5.37.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.3/Unicode::Normalize">5.37.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.2/Unicode::Normalize">5.37.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.1/Unicode::Normalize">5.37.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.0/Unicode::Normalize">5.37.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.11/Unicode::Normalize">5.35.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.10/Unicode::Normalize">5.35.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.9/Unicode::Normalize">5.35.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.8/Unicode::Normalize">5.35.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.7/Unicode::Normalize">5.35.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.6/Unicode::Normalize">5.35.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.5/Unicode::Normalize">5.35.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.4/Unicode::Normalize">5.35.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.3/Unicode::Normalize">5.35.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.2/Unicode::Normalize">5.35.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.1/Unicode::Normalize">5.35.1</a>
          <a class="dropdown-item active" href="./Unicode::Normalize.html">5.35.0</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="./Unicode::Normalize.html#" id="dropdownlink-nav" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Documentation</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-nav">
          <a class="dropdown-item" href="perl.html">Perl</a>
          <a class="dropdown-item" href="perlintro.html">Intro</a>
          <a class="dropdown-item" href="perl.html#Tutorials">Tutorials</a>
          <a class="dropdown-item" href="perlfaq.html">FAQs</a>
          <a class="dropdown-item" href="perl.html#Reference-Manual">Reference</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlop.html">Operators</a>
          <a class="dropdown-item" href="functions.html">Functions</a>
          <a class="dropdown-item" href="variables.html">Variables</a>
          <a class="dropdown-item" href="modules.html">Modules</a>
          <a class="dropdown-item" href="perlutil.html">Utilities</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlcommunity.html">Community</a>
          <a class="dropdown-item" href="perlhist.html">History</a>
        </div>
      </li>
    </ul>
    <ul class="navbar-nav">
      <script>
        function set_expand (expand) {
          var perldocdiv = document.getElementById('perldocdiv');
          var width = window.getComputedStyle(perldocdiv).getPropertyValue('max-width');
          var expanded = (width == '' || width == 'none') ? true : false;
          if (expand === null) {
            expand = !expanded;
          }
          if ((expand && !expanded) || (!expand && expanded)) {
            perldocdiv.style.setProperty('max-width', expand ? 'none' : '960px');
            var button_classlist = document.getElementById('content-expand-button').classList;
            if (expand) {
              button_classlist.add('btn-light');
              button_classlist.remove('btn-outline-light');
            } else {
              button_classlist.add('btn-outline-light');
              button_classlist.remove('btn-light');
            }
          }
          return expand;
        }
        function toggle_expand () {
          var expand = set_expand(null);
          document.cookie = 'perldoc_expand=' + (expand ? 1 : 0) + '; path=/; expires=Tue, 19 Jan 2038 03:14:07 UTC';
        }
        function read_expand () {
          return document.cookie.split(';').some(function (item) { return item.indexOf('perldoc_expand=1') >= 0 });
        }
        if (document.readyState === 'loading') {
          document.addEventListener('DOMContentLoaded', function () {
            if (read_expand()) {
              set_expand(true);
            }
          });
        } else if (read_expand()) {
          set_expand(true);
        }
      </script>
      <button id="content-expand-button" type="button" class="btn btn-outline-light d-none d-lg-inline-block mr-2" onclick="toggle_expand()">Expand</button>
    <ul>
    <form class="form-inline" method="get" action="https://perldoc.perl.org/5.35.0/search">
      <input class="form-control mr-3" type="search" name="q" placeholder="Search" aria-label="Search">
    </form>
  </div>
</nav>

    <div id="wrapperlicious" class="container-fluid">
      <div id="perldocdiv">
        <div id="links">
          <a href="./Unicode::Normalize.html">Unicode::Normalize</a>
          <div id="more">
            (<a href="./Unicode::Normalize.txt">source</a>,
            <a href="https://metacpan.org/pod/Unicode::Normalize">CPAN</a>)
          </div>
            <div id="moduleversion">version 1.28</div>
        </div>
        <div class="leading-notice">
          You are viewing the version of this documentation from Perl 5.35.0.
            This is a development version of Perl.
        </div>
        <h1><a id="toc">CONTENTS</a></h1>
                  <ul>
              <li>
                <a class="text-decoration-none" href="./Unicode::Normalize.html#NAME">NAME</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::Normalize.html#SYNOPSIS">SYNOPSIS</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::Normalize.html#DESCRIPTION">DESCRIPTION</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="./Unicode::Normalize.html#Normalization-Forms">Normalization Forms</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::Normalize.html#Decomposition-and-Composition">Decomposition and Composition</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::Normalize.html#Quick-Check">Quick Check</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::Normalize.html#Character-Data">Character Data</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::Normalize.html#EXPORT">EXPORT</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::Normalize.html#CAVEATS">CAVEATS</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::Normalize.html#AUTHOR">AUTHOR</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::Normalize.html#LICENSE">LICENSE</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::Normalize.html#SEE-ALSO">SEE ALSO</a>
              </li>
          </ul>

      <h1 id="NAME"><a class="permalink" href="./Unicode::Normalize.html#NAME">#</a>NAME</h1>

<p>Unicode::Normalize - Unicode Normalization Forms</p>

<h1 id="SYNOPSIS"><a class="permalink" href="./Unicode::Normalize.html#SYNOPSIS">#</a>SYNOPSIS</h1>

<p>(1) using function names exported by default:</p>

<pre><code>use Unicode::Normalize;

$NFD_string  = NFD($string);  # Normalization Form D
$NFC_string  = NFC($string);  # Normalization Form C
$NFKD_string = NFKD($string); # Normalization Form KD
$NFKC_string = NFKC($string); # Normalization Form KC</code></pre>

<p>(2) using function names exported on request:</p>

<pre><code>use Unicode::Normalize &#39;normalize&#39;;

$NFD_string  = normalize(&#39;D&#39;,  $string);  # Normalization Form D
$NFC_string  = normalize(&#39;C&#39;,  $string);  # Normalization Form C
$NFKD_string = normalize(&#39;KD&#39;, $string);  # Normalization Form KD
$NFKC_string = normalize(&#39;KC&#39;, $string);  # Normalization Form KC</code></pre>

<h1 id="DESCRIPTION"><a class="permalink" href="./Unicode::Normalize.html#DESCRIPTION">#</a>DESCRIPTION</h1>

<p>Parameters:</p>

<p><code>$string</code> is used as a string under character semantics (see <a href="perlunicode.html">perlunicode</a>).</p>

<p><code>$code_point</code> should be an unsigned integer representing a Unicode code point.</p>

<p>Note: Between XSUB and pure Perl, there is an incompatibility about the interpretation of <code>$code_point</code> as a decimal number. XSUB converts <code>$code_point</code> to an unsigned integer, but pure Perl does not. Do not use a floating point nor a negative sign in <code>$code_point</code>.</p>

<h2 id="Normalization-Forms"><a class="permalink" href="./Unicode::Normalize.html#Normalization-Forms">#</a><a id="Normalization"></a>Normalization Forms</h2>

<dl>

<dt id="$NFD_string-=-NFD($string)"><a class="permalink" href="./Unicode::Normalize.html#$NFD_string-=-NFD($string)">#</a><a id="NFD_string-NFD-string"></a><code>$NFD_string = NFD($string)</code></dt>
<dd>

<p>It returns the Normalization Form D (formed by canonical decomposition).</p>

</dd>
<dt id="$NFC_string-=-NFC($string)"><a class="permalink" href="./Unicode::Normalize.html#$NFC_string-=-NFC($string)">#</a><a id="NFC_string-NFC-string"></a><code>$NFC_string = NFC($string)</code></dt>
<dd>

<p>It returns the Normalization Form C (formed by canonical decomposition followed by canonical composition).</p>

</dd>
<dt id="$NFKD_string-=-NFKD($string)"><a class="permalink" href="./Unicode::Normalize.html#$NFKD_string-=-NFKD($string)">#</a><a id="NFKD_string-NFKD-string"></a><code>$NFKD_string = NFKD($string)</code></dt>
<dd>

<p>It returns the Normalization Form KD (formed by compatibility decomposition).</p>

</dd>
<dt id="$NFKC_string-=-NFKC($string)"><a class="permalink" href="./Unicode::Normalize.html#$NFKC_string-=-NFKC($string)">#</a><a id="NFKC_string-NFKC-string"></a><code>$NFKC_string = NFKC($string)</code></dt>
<dd>

<p>It returns the Normalization Form KC (formed by compatibility decomposition followed by <b>canonical</b> composition).</p>

</dd>
<dt id="$FCD_string-=-FCD($string)"><a class="permalink" href="./Unicode::Normalize.html#$FCD_string-=-FCD($string)">#</a><a id="FCD_string-FCD-string"></a><code>$FCD_string = FCD($string)</code></dt>
<dd>

<p>If the given string is in FCD (&quot;Fast C or D&quot; form; cf. UTN #5), it returns the string without modification; otherwise it returns an FCD string.</p>

<p>Note: FCD is not always unique, then plural forms may be equivalent each other. <code>FCD()</code> will return one of these equivalent forms.</p>

</dd>
<dt id="$FCC_string-=-FCC($string)"><a class="permalink" href="./Unicode::Normalize.html#$FCC_string-=-FCC($string)">#</a><a id="FCC_string-FCC-string"></a><code>$FCC_string = FCC($string)</code></dt>
<dd>

<p>It returns the FCC form (&quot;Fast C Contiguous&quot;; cf. UTN #5).</p>

<p>Note: FCC is unique, as well as four normalization forms (NF*).</p>

</dd>
<dt id="$normalized_string-=-normalize($form_name,-$string)"><a class="permalink" href="./Unicode::Normalize.html#$normalized_string-=-normalize($form_name,-$string)">#</a><a id="normalized_string-normalize-form_name-string"></a><code>$normalized_string = normalize($form_name, $string)</code></dt>
<dd>

<p>It returns the normalization form of <code>$form_name</code>.</p>

<p>As <code>$form_name</code>, one of the following names must be given.</p>

<pre><code class="plaintext">&#39;C&#39;  or &#39;NFC&#39;  for Normalization Form C  (UAX #15)
&#39;D&#39;  or &#39;NFD&#39;  for Normalization Form D  (UAX #15)
&#39;KC&#39; or &#39;NFKC&#39; for Normalization Form KC (UAX #15)
&#39;KD&#39; or &#39;NFKD&#39; for Normalization Form KD (UAX #15)

&#39;FCD&#39;          for &quot;Fast C or D&quot; Form  (UTN #5)
&#39;FCC&#39;          for &quot;Fast C Contiguous&quot; (UTN #5)</code></pre>

</dd>
</dl>

<h2 id="Decomposition-and-Composition"><a class="permalink" href="./Unicode::Normalize.html#Decomposition-and-Composition">#</a><a id="Decomposition"></a>Decomposition and Composition</h2>

<dl>

<dt id="$decomposed_string-=-decompose($string-[,-$useCompatMapping])"><a class="permalink" href="./Unicode::Normalize.html#$decomposed_string-=-decompose($string-%5B,-$useCompatMapping%5D)">#</a><a id="decomposed_string-decompose-string-useCompatMapping"></a><code>$decomposed_string = decompose($string [, $useCompatMapping])</code></dt>
<dd>

<p>It returns the concatenation of the decomposition of each character in the string.</p>

<p>If the second parameter (a boolean) is omitted or false, the decomposition is canonical decomposition; if the second parameter (a boolean) is true, the decomposition is compatibility decomposition.</p>

<p>The string returned is not always in NFD/NFKD. Reordering may be required.</p>

<pre><code>$NFD_string  = reorder(decompose($string));       # eq. to NFD()
$NFKD_string = reorder(decompose($string, TRUE)); # eq. to NFKD()</code></pre>

</dd>
<dt id="$reordered_string-=-reorder($string)"><a class="permalink" href="./Unicode::Normalize.html#$reordered_string-=-reorder($string)">#</a><a id="reordered_string-reorder-string"></a><code>$reordered_string = reorder($string)</code></dt>
<dd>

<p>It returns the result of reordering the combining characters according to Canonical Ordering Behavior.</p>

<p>For example, when you have a list of NFD/NFKD strings, you can get the concatenated NFD/NFKD string from them, by saying</p>

<pre><code>$concat_NFD  = reorder(join &#39;&#39;, @NFD_strings);
$concat_NFKD = reorder(join &#39;&#39;, @NFKD_strings);</code></pre>

</dd>
<dt id="$composed_string-=-compose($string)"><a class="permalink" href="./Unicode::Normalize.html#$composed_string-=-compose($string)">#</a><a id="composed_string-compose-string"></a><code>$composed_string = compose($string)</code></dt>
<dd>

<p>It returns the result of canonical composition without applying any decomposition.</p>

<p>For example, when you have a NFD/NFKD string, you can get its NFC/NFKC string, by saying</p>

<pre><code>$NFC_string  = compose($NFD_string);
$NFKC_string = compose($NFKD_string);</code></pre>

</dd>
<dt id="($processed,-$unprocessed)-=-splitOnLastStarter($normalized)"><a class="permalink" href="./Unicode::Normalize.html#($processed,-$unprocessed)-=-splitOnLastStarter($normalized)">#</a><a id="processed-unprocessed-splitOnLastStarter-normalized"></a><code>($processed, $unprocessed) = splitOnLastStarter($normalized)</code></dt>
<dd>

<p>It returns two strings: the first one, <code>$processed</code>, is a part before the last starter, and the second one, <code>$unprocessed</code> is another part after the first part. A starter is a character having a combining class of zero (see UAX #15).</p>

<p>Note that <code>$processed</code> may be empty (when <code>$normalized</code> contains no starter or starts with the last starter), and then <code>$unprocessed</code> should be equal to the entire <code>$normalized</code>.</p>

<p>When you have a <code>$normalized</code> string and an <code>$unnormalized</code> string following it, a simple concatenation is wrong:</p>

<pre><code>$concat = $normalized . normalize($form, $unnormalized); # wrong!</code></pre>

<p>Instead of it, do like this:</p>

<pre><code>($processed, $unprocessed) = splitOnLastStarter($normalized);
$concat = $processed . normalize($form,$unprocessed.$unnormalized);</code></pre>

<p><code>splitOnLastStarter()</code> should be called with a pre-normalized parameter <code>$normalized</code>, that is in the same form as <code>$form</code> you want.</p>

<p>If you have an array of <code>@string</code> that should be concatenated and then normalized, you can do like this:</p>

<pre><code>my $result = &quot;&quot;;
my $unproc = &quot;&quot;;
foreach my $str (@string) {
    $unproc .= $str;
    my $n = normalize($form, $unproc);
    my($p, $u) = splitOnLastStarter($n);
    $result .= $p;
    $unproc  = $u;
}
$result .= $unproc;
# instead of normalize($form, join(&#39;&#39;, @string))</code></pre>

</dd>
<dt id="$processed-=-normalize_partial($form,-$unprocessed)"><a class="permalink" href="./Unicode::Normalize.html#$processed-=-normalize_partial($form,-$unprocessed)">#</a><a id="processed-normalize_partial-form-unprocessed"></a><code>$processed = normalize_partial($form, $unprocessed)</code></dt>
<dd>

<p>A wrapper for the combination of <code>normalize()</code> and <code>splitOnLastStarter()</code>. Note that <code>$unprocessed</code> will be modified as a side-effect.</p>

<p>If you have an array of <code>@string</code> that should be concatenated and then normalized, you can do like this:</p>

<pre><code>my $result = &quot;&quot;;
my $unproc = &quot;&quot;;
foreach my $str (@string) {
    $unproc .= $str;
    $result .= normalize_partial($form, $unproc);
}
$result .= $unproc;
# instead of normalize($form, join(&#39;&#39;, @string))</code></pre>

</dd>
<dt id="$processed-=-NFD_partial($unprocessed)"><a class="permalink" href="./Unicode::Normalize.html#$processed-=-NFD_partial($unprocessed)">#</a><a id="processed-NFD_partial-unprocessed"></a><code>$processed = NFD_partial($unprocessed)</code></dt>
<dd>

<p>It does like <code>normalize_partial(&#39;NFD&#39;, $unprocessed)</code>. Note that <code>$unprocessed</code> will be modified as a side-effect.</p>

</dd>
<dt id="$processed-=-NFC_partial($unprocessed)"><a class="permalink" href="./Unicode::Normalize.html#$processed-=-NFC_partial($unprocessed)">#</a><a id="processed-NFC_partial-unprocessed"></a><code>$processed = NFC_partial($unprocessed)</code></dt>
<dd>

<p>It does like <code>normalize_partial(&#39;NFC&#39;, $unprocessed)</code>. Note that <code>$unprocessed</code> will be modified as a side-effect.</p>

</dd>
<dt id="$processed-=-NFKD_partial($unprocessed)"><a class="permalink" href="./Unicode::Normalize.html#$processed-=-NFKD_partial($unprocessed)">#</a><a id="processed-NFKD_partial-unprocessed"></a><code>$processed = NFKD_partial($unprocessed)</code></dt>
<dd>

<p>It does like <code>normalize_partial(&#39;NFKD&#39;, $unprocessed)</code>. Note that <code>$unprocessed</code> will be modified as a side-effect.</p>

</dd>
<dt id="$processed-=-NFKC_partial($unprocessed)"><a class="permalink" href="./Unicode::Normalize.html#$processed-=-NFKC_partial($unprocessed)">#</a><a id="processed-NFKC_partial-unprocessed"></a><code>$processed = NFKC_partial($unprocessed)</code></dt>
<dd>

<p>It does like <code>normalize_partial(&#39;NFKC&#39;, $unprocessed)</code>. Note that <code>$unprocessed</code> will be modified as a side-effect.</p>

</dd>
</dl>

<h2 id="Quick-Check"><a class="permalink" href="./Unicode::Normalize.html#Quick-Check">#</a><a id="Quick"></a>Quick Check</h2>

<p>(see Annex 8, UAX #15; and <i>DerivedNormalizationProps.txt</i>)</p>

<p>The following functions check whether the string is in that normalization form.</p>

<p>The result returned will be one of the following:</p>

<pre><code class="plaintext">YES     The string is in that normalization form.
NO      The string is not in that normalization form.
MAYBE   Dubious. Maybe yes, maybe no.</code></pre>

<dl>

<dt id="$result-=-checkNFD($string)"><a class="permalink" href="./Unicode::Normalize.html#$result-=-checkNFD($string)">#</a><a id="result-checkNFD-string"></a><code>$result = checkNFD($string)</code></dt>
<dd>

<p>It returns true (<code>1</code>) if <code>YES</code>; false (<code>empty string</code>) if <code>NO</code>.</p>

</dd>
<dt id="$result-=-checkNFC($string)"><a class="permalink" href="./Unicode::Normalize.html#$result-=-checkNFC($string)">#</a><a id="result-checkNFC-string"></a><code>$result = checkNFC($string)</code></dt>
<dd>

<p>It returns true (<code>1</code>) if <code>YES</code>; false (<code>empty string</code>) if <code>NO</code>; <code>undef</code> if <code>MAYBE</code>.</p>

</dd>
<dt id="$result-=-checkNFKD($string)"><a class="permalink" href="./Unicode::Normalize.html#$result-=-checkNFKD($string)">#</a><a id="result-checkNFKD-string"></a><code>$result = checkNFKD($string)</code></dt>
<dd>

<p>It returns true (<code>1</code>) if <code>YES</code>; false (<code>empty string</code>) if <code>NO</code>.</p>

</dd>
<dt id="$result-=-checkNFKC($string)"><a class="permalink" href="./Unicode::Normalize.html#$result-=-checkNFKC($string)">#</a><a id="result-checkNFKC-string"></a><code>$result = checkNFKC($string)</code></dt>
<dd>

<p>It returns true (<code>1</code>) if <code>YES</code>; false (<code>empty string</code>) if <code>NO</code>; <code>undef</code> if <code>MAYBE</code>.</p>

</dd>
<dt id="$result-=-checkFCD($string)"><a class="permalink" href="./Unicode::Normalize.html#$result-=-checkFCD($string)">#</a><a id="result-checkFCD-string"></a><code>$result = checkFCD($string)</code></dt>
<dd>

<p>It returns true (<code>1</code>) if <code>YES</code>; false (<code>empty string</code>) if <code>NO</code>.</p>

</dd>
<dt id="$result-=-checkFCC($string)"><a class="permalink" href="./Unicode::Normalize.html#$result-=-checkFCC($string)">#</a><a id="result-checkFCC-string"></a><code>$result = checkFCC($string)</code></dt>
<dd>

<p>It returns true (<code>1</code>) if <code>YES</code>; false (<code>empty string</code>) if <code>NO</code>; <code>undef</code> if <code>MAYBE</code>.</p>

<p>Note: If a string is not in FCD, it must not be in FCC. So <code>checkFCC($not_FCD_string)</code> should return <code>NO</code>.</p>

</dd>
<dt id="$result-=-check($form_name,-$string)"><a class="permalink" href="./Unicode::Normalize.html#$result-=-check($form_name,-$string)">#</a><a id="result-check-form_name-string"></a><code>$result = check($form_name, $string)</code></dt>
<dd>

<p>It returns true (<code>1</code>) if <code>YES</code>; false (<code>empty string</code>) if <code>NO</code>; <code>undef</code> if <code>MAYBE</code>.</p>

<p>As <code>$form_name</code>, one of the following names must be given.</p>

<pre><code class="plaintext">&#39;C&#39;  or &#39;NFC&#39;  for Normalization Form C  (UAX #15)
&#39;D&#39;  or &#39;NFD&#39;  for Normalization Form D  (UAX #15)
&#39;KC&#39; or &#39;NFKC&#39; for Normalization Form KC (UAX #15)
&#39;KD&#39; or &#39;NFKD&#39; for Normalization Form KD (UAX #15)

&#39;FCD&#39;          for &quot;Fast C or D&quot; Form  (UTN #5)
&#39;FCC&#39;          for &quot;Fast C Contiguous&quot; (UTN #5)</code></pre>

</dd>
</dl>

<p><b>Note</b></p>

<p>In the cases of NFD, NFKD, and FCD, the answer must be either <code>YES</code> or <code>NO</code>. The answer <code>MAYBE</code> may be returned in the cases of NFC, NFKC, and FCC.</p>

<p>A <code>MAYBE</code> string should contain at least one combining character or the like. For example, <code>COMBINING ACUTE ACCENT</code> has the MAYBE_NFC/MAYBE_NFKC property.</p>

<p>Both <code>checkNFC(&quot;A\N{COMBINING ACUTE ACCENT}&quot;)</code> and <code>checkNFC(&quot;B\N{COMBINING ACUTE ACCENT}&quot;)</code> will return <code>MAYBE</code>. <code>&quot;A\N{COMBINING ACUTE ACCENT}&quot;</code> is not in NFC (its NFC is <code>&quot;\N{LATIN CAPITAL LETTER A WITH ACUTE}&quot;</code>), while <code>&quot;B\N{COMBINING ACUTE ACCENT}&quot;</code> is in NFC.</p>

<p>If you want to check exactly, compare the string with its NFC/NFKC/FCC.</p>

<pre><code>if ($string eq NFC($string)) {
    # $string is exactly normalized in NFC;
} else {
    # $string is not normalized in NFC;
}

if ($string eq NFKC($string)) {
    # $string is exactly normalized in NFKC;
} else {
    # $string is not normalized in NFKC;
}</code></pre>

<h2 id="Character-Data"><a class="permalink" href="./Unicode::Normalize.html#Character-Data">#</a><a id="Character"></a>Character Data</h2>

<p>These functions are interface of character data used internally. If you want only to get Unicode normalization forms, you don&#39;t need call them yourself.</p>

<dl>

<dt id="$canonical_decomposition-=-getCanon($code_point)"><a class="permalink" href="./Unicode::Normalize.html#$canonical_decomposition-=-getCanon($code_point)">#</a><a id="canonical_decomposition-getCanon-code_point"></a><code>$canonical_decomposition = getCanon($code_point)</code></dt>
<dd>

<p>If the character is canonically decomposable (including Hangul Syllables), it returns the (full) canonical decomposition as a string. Otherwise it returns <code>undef</code>.</p>

<p><b>Note:</b> According to the Unicode standard, the canonical decomposition of the character that is not canonically decomposable is same as the character itself.</p>

</dd>
<dt id="$compatibility_decomposition-=-getCompat($code_point)"><a class="permalink" href="./Unicode::Normalize.html#$compatibility_decomposition-=-getCompat($code_point)">#</a><a id="compatibility_decomposition-getCompat-code_point"></a><code>$compatibility_decomposition = getCompat($code_point)</code></dt>
<dd>

<p>If the character is compatibility decomposable (including Hangul Syllables), it returns the (full) compatibility decomposition as a string. Otherwise it returns <code>undef</code>.</p>

<p><b>Note:</b> According to the Unicode standard, the compatibility decomposition of the character that is not compatibility decomposable is same as the character itself.</p>

</dd>
<dt id="$code_point_composite-=-getComposite($code_point_here,-$code_point_next)"><a class="permalink" href="./Unicode::Normalize.html#$code_point_composite-=-getComposite($code_point_here,-$code_point_next)">#</a><a id="code_point_composite-getComposite-code_point_here-code_point_next"></a><code>$code_point_composite = getComposite($code_point_here, $code_point_next)</code></dt>
<dd>

<p>If two characters here and next (as code points) are composable (including Hangul Jamo/Syllables and Composition Exclusions), it returns the code point of the composite.</p>

<p>If they are not composable, it returns <code>undef</code>.</p>

</dd>
<dt id="$combining_class-=-getCombinClass($code_point)"><a class="permalink" href="./Unicode::Normalize.html#$combining_class-=-getCombinClass($code_point)">#</a><a id="combining_class-getCombinClass-code_point"></a><code>$combining_class = getCombinClass($code_point)</code></dt>
<dd>

<p>It returns the combining class (as an integer) of the character.</p>

</dd>
<dt id="$may_be_composed_with_prev_char-=-isComp2nd($code_point)"><a class="permalink" href="./Unicode::Normalize.html#$may_be_composed_with_prev_char-=-isComp2nd($code_point)">#</a><a id="may_be_composed_with_prev_char-isComp2nd-code_point"></a><code>$may_be_composed_with_prev_char = isComp2nd($code_point)</code></dt>
<dd>

<p>It returns a boolean whether the character of the specified codepoint may be composed with the previous one in a certain composition (including Hangul Compositions, but excluding Composition Exclusions and Non-Starter Decompositions).</p>

</dd>
<dt id="$is_exclusion-=-isExclusion($code_point)"><a class="permalink" href="./Unicode::Normalize.html#$is_exclusion-=-isExclusion($code_point)">#</a><a id="is_exclusion-isExclusion-code_point"></a><code>$is_exclusion = isExclusion($code_point)</code></dt>
<dd>

<p>It returns a boolean whether the code point is a composition exclusion.</p>

</dd>
<dt id="$is_singleton-=-isSingleton($code_point)"><a class="permalink" href="./Unicode::Normalize.html#$is_singleton-=-isSingleton($code_point)">#</a><a id="is_singleton-isSingleton-code_point"></a><code>$is_singleton = isSingleton($code_point)</code></dt>
<dd>

<p>It returns a boolean whether the code point is a singleton</p>

</dd>
<dt id="$is_non_starter_decomposition-=-isNonStDecomp($code_point)"><a class="permalink" href="./Unicode::Normalize.html#$is_non_starter_decomposition-=-isNonStDecomp($code_point)">#</a><a id="is_non_starter_decomposition-isNonStDecomp-code_point"></a><code>$is_non_starter_decomposition = isNonStDecomp($code_point)</code></dt>
<dd>

<p>It returns a boolean whether the code point has Non-Starter Decomposition.</p>

</dd>
<dt id="$is_Full_Composition_Exclusion-=-isComp_Ex($code_point)"><a class="permalink" href="./Unicode::Normalize.html#$is_Full_Composition_Exclusion-=-isComp_Ex($code_point)">#</a><a id="is_Full_Composition_Exclusion-isComp_Ex-code_point"></a><code>$is_Full_Composition_Exclusion = isComp_Ex($code_point)</code></dt>
<dd>

<p>It returns a boolean of the derived property Comp_Ex (Full_Composition_Exclusion). This property is generated from Composition Exclusions + Singletons + Non-Starter Decompositions.</p>

</dd>
<dt id="$NFD_is_NO-=-isNFD_NO($code_point)"><a class="permalink" href="./Unicode::Normalize.html#$NFD_is_NO-=-isNFD_NO($code_point)">#</a><a id="NFD_is_NO-isNFD_NO-code_point"></a><code>$NFD_is_NO = isNFD_NO($code_point)</code></dt>
<dd>

<p>It returns a boolean of the derived property NFD_NO (NFD_Quick_Check=No).</p>

</dd>
<dt id="$NFC_is_NO-=-isNFC_NO($code_point)"><a class="permalink" href="./Unicode::Normalize.html#$NFC_is_NO-=-isNFC_NO($code_point)">#</a><a id="NFC_is_NO-isNFC_NO-code_point"></a><code>$NFC_is_NO = isNFC_NO($code_point)</code></dt>
<dd>

<p>It returns a boolean of the derived property NFC_NO (NFC_Quick_Check=No).</p>

</dd>
<dt id="$NFC_is_MAYBE-=-isNFC_MAYBE($code_point)"><a class="permalink" href="./Unicode::Normalize.html#$NFC_is_MAYBE-=-isNFC_MAYBE($code_point)">#</a><a id="NFC_is_MAYBE-isNFC_MAYBE-code_point"></a><code>$NFC_is_MAYBE = isNFC_MAYBE($code_point)</code></dt>
<dd>

<p>It returns a boolean of the derived property NFC_MAYBE (NFC_Quick_Check=Maybe).</p>

</dd>
<dt id="$NFKD_is_NO-=-isNFKD_NO($code_point)"><a class="permalink" href="./Unicode::Normalize.html#$NFKD_is_NO-=-isNFKD_NO($code_point)">#</a><a id="NFKD_is_NO-isNFKD_NO-code_point"></a><code>$NFKD_is_NO = isNFKD_NO($code_point)</code></dt>
<dd>

<p>It returns a boolean of the derived property NFKD_NO (NFKD_Quick_Check=No).</p>

</dd>
<dt id="$NFKC_is_NO-=-isNFKC_NO($code_point)"><a class="permalink" href="./Unicode::Normalize.html#$NFKC_is_NO-=-isNFKC_NO($code_point)">#</a><a id="NFKC_is_NO-isNFKC_NO-code_point"></a><code>$NFKC_is_NO = isNFKC_NO($code_point)</code></dt>
<dd>

<p>It returns a boolean of the derived property NFKC_NO (NFKC_Quick_Check=No).</p>

</dd>
<dt id="$NFKC_is_MAYBE-=-isNFKC_MAYBE($code_point)"><a class="permalink" href="./Unicode::Normalize.html#$NFKC_is_MAYBE-=-isNFKC_MAYBE($code_point)">#</a><a id="NFKC_is_MAYBE-isNFKC_MAYBE-code_point"></a><code>$NFKC_is_MAYBE = isNFKC_MAYBE($code_point)</code></dt>
<dd>

<p>It returns a boolean of the derived property NFKC_MAYBE (NFKC_Quick_Check=Maybe).</p>

</dd>
</dl>

<h1 id="EXPORT"><a class="permalink" href="./Unicode::Normalize.html#EXPORT">#</a>EXPORT</h1>

<p><code>NFC</code>, <code>NFD</code>, <code>NFKC</code>, <code>NFKD</code>: by default.</p>

<p><code>normalize</code> and other some functions: on request.</p>

<h1 id="CAVEATS"><a class="permalink" href="./Unicode::Normalize.html#CAVEATS">#</a>CAVEATS</h1>

<dl>

<dt id="Perl&#39;s-version-vs.-Unicode-version"><a class="permalink" href="./Unicode::Normalize.html#Perl&#39;s-version-vs.-Unicode-version">#</a><a id="Perl"></a><a id="Perls-version-vs.-Unicode-version"></a>Perl&#39;s version vs. Unicode version</dt>
<dd>

<p>Since this module refers to perl core&#39;s Unicode database in the directory <i>/lib/unicore</i> (or formerly <i>/lib/unicode</i>), the Unicode version of normalization implemented by this module depends on what has been compiled into your perl. The following table lists the default Unicode version that comes with various perl versions. (It is possible to change the Unicode version in any perl version to be any earlier Unicode version, so one could cause Unicode 3.2 to be used in any perl version starting with 5.8.0. Read <i><code>$Config{privlib}</code>/unicore/README.perl</i> for details.</p>

<pre><code class="plaintext">perl&#39;s version     implemented Unicode version
   5.6.1              3.0.1
   5.7.2              3.1.0
   5.7.3              3.1.1 (normalization is same as 3.1.0)
   5.8.0              3.2.0
     5.8.1-5.8.3      4.0.0
     5.8.4-5.8.6      4.0.1 (normalization is same as 4.0.0)
     5.8.7-5.8.8      4.1.0
   5.10.0             5.0.0
    5.8.9, 5.10.1     5.1.0
   5.12.x             5.2.0
   5.14.x             6.0.0
   5.16.x             6.1.0
   5.18.x             6.2.0
   5.20.x             6.3.0
   5.22.x             7.0.0</code></pre>

</dd>
<dt id="Correction-of-decomposition-mapping"><a class="permalink" href="./Unicode::Normalize.html#Correction-of-decomposition-mapping">#</a><a id="Correction"></a>Correction of decomposition mapping</dt>
<dd>

<p>In older Unicode versions, a small number of characters (all of which are CJK compatibility ideographs as far as they have been found) may have an erroneous decomposition mapping (see <i>NormalizationCorrections.txt</i>). Anyhow, this module will neither refer to <i>NormalizationCorrections.txt</i> nor provide any specific version of normalization. Therefore this module running on an older perl with an older Unicode database may use the erroneous decomposition mapping blindly conforming to the Unicode database.</p>

</dd>
<dt id="Revised-definition-of-canonical-composition"><a class="permalink" href="./Unicode::Normalize.html#Revised-definition-of-canonical-composition">#</a><a id="Revised"></a>Revised definition of canonical composition</dt>
<dd>

<p>In Unicode 4.1.0, the definition D2 of canonical composition (which affects NFC and NFKC) has been changed (see Public Review Issue #29 and recent UAX #15). This module has used the newer definition since the version 0.07 (Oct 31, 2001). This module will not support the normalization according to the older definition, even if the Unicode version implemented by perl is lower than 4.1.0.</p>

</dd>
</dl>

<h1 id="AUTHOR"><a class="permalink" href="./Unicode::Normalize.html#AUTHOR">#</a>AUTHOR</h1>

<p>SADAHIRO Tomoyuki &lt;SADAHIRO@cpan.org&gt;</p>

<p>Currently maintained by &lt;perl5-porters@perl.org&gt;</p>

<p>Copyright(C) 2001-2012, SADAHIRO Tomoyuki. Japan. All rights reserved.</p>

<h1 id="LICENSE"><a class="permalink" href="./Unicode::Normalize.html#LICENSE">#</a>LICENSE</h1>

<p>This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.</p>

<h1 id="SEE-ALSO"><a class="permalink" href="./Unicode::Normalize.html#SEE-ALSO">#</a><a id="SEE"></a>SEE ALSO</h1>

<dl>

<dt id="http://www.unicode.org/reports/tr15/"><a class="permalink" href="./Unicode::Normalize.html#http://www.unicode.org/reports/tr15/">#</a><a id="http"></a><a id="http:-www.unicode.org-reports-tr15"></a><a href="http://www.unicode.org/reports/tr15/">http://www.unicode.org/reports/tr15/</a></dt>
<dd>

<p>Unicode Normalization Forms - UAX #15</p>

</dd>
<dt id="http://www.unicode.org/Public/UNIDATA/CompositionExclusions.txt"><a class="permalink" href="./Unicode::Normalize.html#http://www.unicode.org/Public/UNIDATA/CompositionExclusions.txt">#</a><a id="http1"></a><a id="http:-www.unicode.org-Public-UNIDATA-CompositionExclusions.txt"></a><a href="http://www.unicode.org/Public/UNIDATA/CompositionExclusions.txt">http://www.unicode.org/Public/UNIDATA/CompositionExclusions.txt</a></dt>
<dd>

<p>Composition Exclusion Table</p>

</dd>
<dt id="http://www.unicode.org/Public/UNIDATA/DerivedNormalizationProps.txt"><a class="permalink" href="./Unicode::Normalize.html#http://www.unicode.org/Public/UNIDATA/DerivedNormalizationProps.txt">#</a><a id="http2"></a><a id="http:-www.unicode.org-Public-UNIDATA-DerivedNormalizationProps.txt"></a><a href="http://www.unicode.org/Public/UNIDATA/DerivedNormalizationProps.txt">http://www.unicode.org/Public/UNIDATA/DerivedNormalizationProps.txt</a></dt>
<dd>

<p>Derived Normalization Properties</p>

</dd>
<dt id="http://www.unicode.org/Public/UNIDATA/NormalizationCorrections.txt"><a class="permalink" href="./Unicode::Normalize.html#http://www.unicode.org/Public/UNIDATA/NormalizationCorrections.txt">#</a><a id="http3"></a><a id="http:-www.unicode.org-Public-UNIDATA-NormalizationCorrections.txt"></a><a href="http://www.unicode.org/Public/UNIDATA/NormalizationCorrections.txt">http://www.unicode.org/Public/UNIDATA/NormalizationCorrections.txt</a></dt>
<dd>

<p>Normalization Corrections</p>

</dd>
<dt id="http://www.unicode.org/review/pr-29.html"><a class="permalink" href="./Unicode::Normalize.html#http://www.unicode.org/review/pr-29.html">#</a><a id="http4"></a><a id="http:-www.unicode.org-review-pr-29.html"></a><a href="http://www.unicode.org/review/pr-29.html">http://www.unicode.org/review/pr-29.html</a></dt>
<dd>

<p>Public Review Issue #29: Normalization Issue</p>

</dd>
<dt id="http://www.unicode.org/notes/tn5/"><a class="permalink" href="./Unicode::Normalize.html#http://www.unicode.org/notes/tn5/">#</a><a id="http5"></a><a id="http:-www.unicode.org-notes-tn5"></a><a href="http://www.unicode.org/notes/tn5/">http://www.unicode.org/notes/tn5/</a></dt>
<dd>

<p>Canonical Equivalence in Applications - UTN #5</p>

</dd>
</dl>


      </div>
      <div id="footer">
        <p>Perldoc Browser is maintained by Dan Book (<a href="https://metacpan.org/author/DBOOK">DBOOK</a>). Please contact him via the <a href="https://github.com/Grinnz/perldoc-browser/issues">GitHub issue tracker</a> or <a href="mailto:dbook@cpan.org">email</a> regarding any issues with the site itself, search, or rendering of documentation.</p>

<p>The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via the <a href="https://github.com/Perl/perl5/issues">Perl issue tracker</a>, the <a href="https://lists.perl.org/list/perl5-porters.html">mailing list</a>, or <a href="https://kiwiirc.com/client/irc.perl.org/p5p">IRC</a> to report any issues with the contents or format of the documentation.</p>


      </div>
    </div>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.min.js" integrity="sha512-/DXTXr6nQodMUiq+IUJYCt2PPOUjrHJ9wFrqpJ3XkgPNOZVfMok7cRw6CSxyCQxXn6ozlESsSh1/sMCTF1rL/g==" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/umd/popper.min.js" integrity="sha512-ubuT8Z88WxezgSqf3RLuNi5lmjstiJcyezx34yIU2gAHonIi27Na7atqzUZCOoY4CExaoFumzOsFQ2Ch+I/HCw==" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
    <script src="../highlight.pack.js"></script>
    <script>hljs.highlightAll();</script>
  </body>
</html>
